package test_package;

import java.util.Formatter;

/**
 * Created by iryna on 3/15/14.
 */
public class fileoperations {
    public static void main(String[] args){
        final Formatter x;
        try{
            x = new Formatter("lesson3.txt");
            System.out.println("you created a file");
        }
        catch(Exception e){
            System.out.println("you got an error");

        }
        fileop g = new fileop();
        g.openFile();
        g.addRecords();
        g.closeFile();
        g.openFile2();
        g.readFile();
        g.deleteFile();

    }
}